import org.apache.spark.sql.{DataFrame, SparkSession}

object Test {


  def main(args: Array[String]): Unit = {


    val ss: SparkSession = SparkSession.builder()
      .appName("test")
      .master("local[*]")
      .getOrCreate()


    val df: DataFrame = ss.read.text("spark_3x/data/word.txt")
    df.show()


    df.explain(mode = "codegen")

  }

}
